/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Operations.Spatial;

/**
 *
 * @author littlechild
 */
class TemplateSquareFunction implements TemplateFunctionR  {
    double radius;
    TemplateSquareFunction(double r) {
        radius=r;
    }

    public double getValue(double r) {
        if(r<=radius)
            return 1;
        return 0;
    }
}
